package com.sy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 展示学生未作和已做作业的标题以及作业截至提交时间的类
 */
public class HomeWorkMessage {
    private Integer id;
    private String title;
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date  endTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getLastSubTime() {
        return endTime;
    }

    public void setLastSubTime(Date lastSubTime) {
        this.endTime = lastSubTime;
    }

    @Override
    public String toString() {
        return "HomeWorkMessage{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", lastSubTime=" + endTime +
                '}';
    }
}
